<?php

namespace app\index\controller;

use think\Controller;
use think\Request;

class Setting extends BaseController
{
    /**
     * 图文详情
     */
    public function detail()
    {
        $setting = $this->notEmpty('setting');
        $content = getSettingValue($setting);
        $keys  = explode('_en', $setting);
        if (count($keys) > 1 && !$content) {
            $content = $content = getSettingValue($keys[0]);
        }
        return $this->successes(compact('content'));
    }


}
